from PIL import Image
from glob import glob
from commands import getoutput as gop
from pixelcount import pixelcount
from partition import partition
from gerTest import gerTest
from knn import knn
import numpy

images = glob('imagens/*.tiff')
m_imagem = gerTest(images)
matTreino=numpy.loadtxt('training.txt')
resultado = knn(m_imagem,matTreino)

print resultado
